package day03;

public class IFelselfdemo {
    public static void main(String[] args) {
        //满1000打7折 满500打4折 满700打2折
        double price = 700;
        if (price>=1000){
            price*=0.5;

        }else if (price>=500){
            price*=0.4;

        }else if (price>=700){
            price*=0.3;

        }
        System.out.println("最终消费金额"+price);
    }
}
